import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listONGOODSSHELF(query) {
  return request({
    url: '/system/ONGOODSSHELF/list',
    method: 'get',
    params: query
  })
}

// 查询【请填写功能名称】详细
export function getONGOODSSHELF(lotId) {
  return request({
    url: '/system/ONGOODSSHELF/' + lotId,
    method: 'get'
  })
}

// 新增【请填写功能名称】
export function addONGOODSSHELF(data) {
  return request({
    url: '/system/ONGOODSSHELF',
    method: 'post',
    data: data
  })
}

// 修改【请填写功能名称】
export function updateONGOODSSHELF(data) {
  return request({
    url: '/system/ONGOODSSHELF',
    method: 'put',
    data: data
  })
}

// 删除【请填写功能名称】
export function delONGOODSSHELF(lotId) {
  return request({
    url: '/system/ONGOODSSHELF/' + lotId,
    method: 'delete'
  })
}

export function updateLocations(locationId) {
  return request({
    url: '/system/ONGOODSSHELF/status/' + locationId,
    method: 'delete'
  })
}

export function updateSts(data) {
  return request({
    url: '/system/ONGOODSSHELF/sts',
    method: 'post',
    data: data
  })
}
